package com.sansan.qiangji.controller.warehouse;

import com.sansan.qiangji.realize.warehouse.StackerTaskOutReal;
import com.sansan.qiangji.resultVO.ResultVO;
import com.sansan.qiangji.utils.ResultVOUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@CrossOrigin()
@RequestMapping("/stackerTaskOut")
@RestController
@Slf4j
public class StackerTaskOutController {
    private StackerTaskOutReal stackerTaskOutReal;

    @Resource
    public void setStackerTaskOutReal(StackerTaskOutReal stackerTaskOutReal){
        this.stackerTaskOutReal = stackerTaskOutReal;
    }

    @PostMapping("/findByStackerTaskOutCode")
    public ResultVO<Object> findByStackerTaskOutCode(@RequestParam(value = "stackerTaskOutCode") String stackerTaskOutCode){
        return ResultVOUtil.success(stackerTaskOutReal.findByStackerTaskOutCode(stackerTaskOutCode));
    }
}
